home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Subject: Removing 320x200 256 color PCX files out of memory
- From: fender@prostar.com (Fender)
- Path: news3.noc.netcom.net!prostar.com
- Message-ID: <00000DEA00001B9F@prostar.com>
- Date: 3 Feb 96 11:49:41 PDT
- Organization: ProStar Plus Internet
-
- Hello,
-
- I'm trying to write a game right now that lets the user hit N to go north S
- to go south. A fairly primative game. But in each room it draws up a .PCX
- file to display what the room looks like. But I can only get about six
- rooms into the game until my computer freezes.
-
- I suppose this is because the PCX files are taking up all of my memory
- until I don't have any left. This is pretty much an outline of the rooms:
-
- room1:
-
- clearscreen
- loadpcx("room1.pcx");
- for(long i=0; i<6400; i++) //displays it
-
-
- room2:
- etc...
-
-
- if anyone can help me. Like tell me how to delete them out of memory, I
- would be extremly gratified. And perhaps could give the next version of my
- game to!
-
- Thank you all
- Al Clark
-
-